package com.zbkj.admin.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Setter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author JXY
 * @date 2024/03/19
 */
@Setter
@SuppressWarnings("unused")
@XmlRootElement(name = "xml")
public class UserNotifyDTO {

    @JsonProperty("Department")
    private String department;
    @JsonProperty("ChangeType")
    private String changeType;
    @JsonProperty("UserID")
    private String userId;
    @JsonProperty("CreateTime")
    private String createTime;
    @JsonProperty("Event")
    private String event;
    @JsonProperty("ToUserName")
    private String toUserName;
    @JsonProperty("FromUserName")
    private String fromUserName;
    @JsonProperty("MsgType")
    private String msgType;

    @XmlElement(name = "Department")
    public String getDepartment() {
        return department;
    }

    @XmlElement(name = "ChangeType")
    public String getChangeType() {
        return changeType;
    }

    @XmlElement(name = "UserID")
    public String getUserId() {
        return userId;
    }

    @XmlElement(name = "CreateTime")
    public String getCreateTime() {
        return createTime;
    }

    @XmlElement(name = "Event")
    public String getEvent() {
        return event;
    }

    @XmlElement(name = "ToUserName")
    public String getToUserName() {
        return toUserName;
    }

    @XmlElement(name = "FromUserName")
    public String getFromUserName() {
        return fromUserName;
    }

    @XmlElement(name = "MsgType")
    public String getMsgType() {
        return msgType;
    }
}
